From: Alejandro PiƱeiro Date: Mon, 4 Jun 2012 16:23:51 +0000 (+0200) Subject: a11y: do not expose a label text if 'hidden' style class is used X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6509 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c31d9d5e3dbe51841eca972cd418981540145009;p=gnome-shell.git a11y: do not expose a label text if 'hidden' style class is used https://bugzilla.gnome.org/show_bug.cgi?id=675341 --- diff --git a/src/st/st-label.c b/src/st/st-label.c index 0d00ba767..4954d4937 100644 --- a/src/st/st-label.c +++ b/src/st/st-label.c @@ -490,7 +490,7 @@ st_label_accessible_get_name (AtkObject *obj) actor = CLUTTER_ACTOR (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (obj))); - if (actor == NULL) /* State is defunct */ + if (actor == NULL || st_widget_has_style_class_name (ST_WIDGET (actor), "hidden")) name = NULL; else name = st_label_get_text (ST_LABEL (actor));